約 114,190 件
https://w.atwiki.jp/sqlpuzzle/pages/20.html
問題 kunさんの答え 2008年04月01日18時28分59秒.pdf サブクエリでやりたいこと→一人暮らしでない人のidの集合を出したい このクエリでやりたいこと→一人暮らしでない人で、且fam IS NULLなら世帯主。 やりたいことはわかるのだけれども、サブクエリのSelect節のcon_idはグループ化されたもので統一である値か集約値しかもってこれないはずなので、これではエラーになるのでは。 mysqlで試してみた(chiemin) とりあえずサブクエリだけ。 mysql select con_id from Consumers group by address having count(*) =2; +--------+ | con_id | +--------+ | 1 | | 3 | +--------+ 2 rows in set (0.00 sec) 偶然だけど、世帯主だけ出ちゃいました。これは世帯主が偶然一番最初に挿入されていたから。mysqlの場合はSelect節に集約値以外の属性が来た場合はグループの一番最初のタプルの値を出すみたいです。多分。 ゼミ中に出たコメント この問題って何がやりたいんだろう…世帯主だけにメールを送るだけならわかるんだけど、世帯主を削除しちゃうって…なぜ? せっかく人のIDと世帯主の参照IDがあるのにaddressが一致するかどうかで同じ世帯に住んでいることを決めてしまってよいのか? 例えば2世帯住宅とかという場合はないのだろうか? 1人住まいでない世帯主を求める問合せ SELECT c1.con_id FROM Consumers c1, Consumers c2 WHERE c1.con_id = c2.fam でもこれだとこの問題ならいいけど(親子関係が一階層だから)、任意の階層を持ってたりしたらまずいよね(木構造みたいに) その辺はどうやらこのテーブルの設計自体がSQL向きでないもよう(サポートページより) コメント 名前 コメント すべてのコメントを見る
https://w.atwiki.jp/sqlpuzzle/pages/40.html
問題 テーブルの1列に格納された一意な数が、歯抜けのない完全な連番を成しているか、それともギャップ(1つ以上連続する欠番)を含むかどうかを調べる。 CREATE TABLE Numbers (seq INTEGER NOT NULL PRIMARY KEY); (Numbers 自然数テーブル、seq 連番) chiakiの解答 考え方 欠番があるかどうかだけ調べたいなら、数の個数が(最大の数ー最小の数+1)個あれば良い。 注1)seq は PRIMARY KEY なので、同じ数字はないという前提の下である。 注2)連番と書いてあるので、数が順に並んでいない場合は考えていない。 SQL文 SELECT CASE WHEN count(N2.seq) = (SELECT (max(N1.seq) - min(N1.seq) +1) FROM Numbers N1) THEN has no missing number ELSE exist missing number END AS Numbers FROM Numbers N2; 実行結果 seq ----- 2 3 5 7 8 14 20 の場合 numbers ---------------------- exist missing number seq ----- 2 3 4 5 6 7 8 の場合 numbers ----------------------- has no missing number 値が1個や2個の場合も成功しました☆
https://w.atwiki.jp/eco_yotuba/pages/39.html
※注意 以下の情報は自己満足や身内による評価である可能性があります。 信じるも信じないも個人の自由でお願いします。 強い弱いよりも人物の特徴を書いていきましょう。 誹謗中傷はやめましょう。 以上を了承の上、お楽しみください。 参加者情報は自軍がもっとも詳しいはず。どんどん編集していきましょう! 参加率は A>B>Cの3段階評価でお願いします。 南軍 参加者 南軍 参加者 ファイター系ソードマン系列 フェンサー系列 アーチャー系列 スカウト系列 スペルユーザー系シャーマン系列 ウァテス系列 ウォーロック系列 バックパッカー系ファーマー系列 レンジャー系列 マーチャント系列 ノービス DEM コメント欄(Wikiの編集の苦手な方はこちらに) ファイター系 ソードマン系列 フェンサー系列 アーチャー系列 スカウト系列 スペルユーザー系 シャーマン系列 ウァテス系列 ウォーロック系列 バックパッカー系 ファーマー系列 レンジャー系列 マーチャント系列 ノービス DEM コメント欄(Wikiの編集の苦手な方はこちらに) 名前
https://w.atwiki.jp/sqlpuzzle/pages/16.html
7つもあったのに私の解答例みたいなのはありませんでした。ちょっと苦しまぎれすぎた? -- (chiemin) 2008-04-01 18 14 47
https://w.atwiki.jp/toeictoeic/pages/22.html
【その1】 ------- the emergence of the megacompetition era in recent years, businesses are coming to require increasingly powerful international competitive strength. (A) Although (B) Unless (C) In spite of (D) Owing to A worker must first be recognized as unemployed by the relevant public job stabilization office ------- be eligible for the unemployment benefit. (A) due to (B) in order to (C) because of (D) but Industrial sector outlays on research declined for three consecutive years between 1992 and 1994, mainly because of the economic downturn, ------- has continued to increase since 1995. (A) what (B) however (C) and (D) but The insulation is designed to protect the orbiter from excessive heat ------- re-entering the earth s atmosphere. (A) about (B) in order to (C) whichever (D) upon In England, tea is usually served ------- at tea time and for breakfast; after lunch and dinner, coffee is often the preferred beverage. (A) separately (B) fuctually (C) locally (D) closely Of all the groups asked about the products design, the survey shows it is ------- appealing to young professionals. (A) very (B) such (C) much (D) most ------- the scanners are adopted more widely and how they are used, will likely be prime topics of discussion at congressional hearings expected early next year. (A) After (B) Although (C) Whether (D) Until The report says the Global Fund to Fight AIDS, Tuberculosis and Malaria would need $20 billion over the next three years to meet the health-related Millennium Goals, ------- it said the budget is likely to be at least $7 billion short of that. (A) and (B) or (C) but (D) not 【その1ー解答】DBDDADC ------- the emergence of the megacompetition era in recent years, businesses are coming to require increasingly powerful international competitive strength. (A) Although (B) Unless (C) In spite of (D) Owing to近年の大競争時代の出現のおかげで、ビジネスにはますますより強固な国際競争力が必要となってきている。 A worker must first be recognized as unemployed by the relevant public job stabilization office ------- be eligible for the unemployment benefit. (A) due to (B) in order to (C) because of (D) but失業給付を受けようとする労働者は、まずはじめに職安にて失業認定を受けなければならない。 Industrial sector outlays on research declined for three consecutive years between 1992 and 1994, mainly because of the economic downturn, ------- has continued to increase since 1995. (A) what (B) however (C) and (D) butoutlay→支出 The insulation is designed to protect the orbiter from excessive heat ------- re-entering the earth s atmosphere. (A) about (B) in order to (C) whichever (D) uponupon(on) ~ing→~するとき In England, tea is usually served ------- at tea time and for breakfast; after lunch and dinner, coffee is often the preferred beverage.(A) separately (B) fuctually (C) locally (D) closely Of all the groups asked about the products design, the survey shows it is ------- appealing to young professionals. (A) very (B) such (C) much (D) most ------- the scanners are adopted more widely and how they are used, will likely be prime topics of discussion at congressional hearings expected early next year. (A) After (B) Although (C) Whether (D) Until
https://w.atwiki.jp/toeictoeic/pages/34.html
(解 答) 101-105 bbddc 106-110 dcadd 111-115 ddcac 116-120 adbbd 121-125 dadbd 126-130 dabca 131-135 bcbdb 136-140 cacdd
https://w.atwiki.jp/toeictoeic/pages/26.html
Question 141-143 refer to the following letter. Kiam Panzer 213 Maple Street Montreal, Quebec H2L 3Y2 December 11 Dear Mr.Panzer I have written to you several times over the past three months requesting an explanation on why you ------- 141.(A) fail (B) failing (C) have failed (D) will be failed to bring your account with us current. By ignoring these requests, you are damaging the excellent credit record you had ------- maintained 142.(A) yet (B) already (C) previously (D) still with our company. In addition, you are incurring additional expense to yourself and to us. ------- I hear from you within ten days, I will have no other choice but to turn your account over for collection. 143.(A) If (B) Owing to (C) However (D) Unless I am sorry that we must take such drastic action but I am afraid you leave us no alternative. You can preserve your credit rating by remitting your check today for the amount stated above. Sincerely, James Donaldson
https://w.atwiki.jp/tkonishi73/pages/395.html
問題5で3級の総括をしました。 3級の実技問題は30分で解きます。 通常の解き方であれば、30分ぎりぎりで解くことが多いです。 しかし、ピボットテーブルやVLOOKUPを使うと、あっという間に完成できます。 いよいよ次回からは2級の問題にチャレンジします。お楽しみに。
https://w.atwiki.jp/izohta/pages/72.html
真空中に 2C の電荷 A と −1C の電荷 B が距離 1m 離れて存在する。 以下の主張の 内,正しいのはどれとどれか。 (a) AはBにひきつけられる向きに力を受ける. (b) Aの受ける力はBの受ける力の2倍である. (c) BはAに反発される向きに力を受ける. (d) A,B間の距離を10mにすると,Aの受ける力は 1 /10倍になる. (e) A,B間の距離を50cmにすると,Bの受ける力は4倍になる. 戻る?! 名前 コメント
https://w.atwiki.jp/izohta/pages/70.html
空間のある点に 3.0 × C の点電荷を置いたら 6.0 × N の力を受 けた. (1) この点の電場の強さはいくらか. (2) この点に −6.0 × C の電荷を置くと,どのような力を受けるか. 戻る?! 名前 コメント